package com.stardata.liangshisq.tcslmon.util;

import com.baomidou.mybatisplus.core.toolkit.StringUtils;

import java.util.ArrayList;
import java.util.List;

/**
 * @author Samson Shu
 * @email shush@stardata.top
 * @date 2020/9/22 21:25
 */

public class CommonUtil {
  public static List<String> methodText2List(String methodText) {
    List<String> labelList = new ArrayList<>();
    if (!StringUtils.isBlank(methodText)) {
      String[] labels = StringUtils.split(methodText, "|");
      for (String label : labels) {
        labelList.add(label.trim());
      }
    }
    return labelList;
  }
}
